<?php
/*******************************************************************************
 *
 *  Name: irtViewReportsView
 *
 *  Date: 5/3/2012
 *  
 *  Description: Viewing reports as an Incident Response Team
 *  
 *  Author: Hayden Waisanen, with modification by David Jarman
 *  
 *  Todo:
 *     NONE
 *
 *  Modification History:  
 * 
 *   Date         Name
 *  ----------   --------------
 *  2012-04-25   HAYDEN WAISANEN
 *  2012-04-23   HAYDEN WAISANEN
 *  2012-04-22   HAYDEN WAISANEN
 *  2012-04-17   HAYDEN WAISANEN
 *  2012-04-17   HAYDEN WAISANEN
 *  2012-05-3    DAVID JARMAN
 * 
 *****************************************************************************/
?>
<h4><?php echo $title; ?></h4>
<table border="2px"> 
<tr>
<td>ReportID</td>
<td>CR ID</td>
<td>Location</td>
<td>Report Time</td>
<td>View</td>
</tr>
<?php
foreach ($entries as $entry)
{
   echo "<tr>";
   echo '<td>'.$entry["ReportID"].'</td>';
   echo '<td>'.$entry["CustomerRepID"].'</td>';
   echo '<td>'.$entry["City"].', '.$entry["State"] .'</td>';
   echo '<td>'.$entry["ReportTime"].'</td>';
   echo '<td>'.anchor('repaircrew/viewreport/'.$entry["ReportID"].'/',"View") .'</td>';
   echo "<tr>";
}
?>
